package org.dromara.system.domain.bo;

import org.dromara.system.domain.PayReceive;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 收款方式业务对象 pay_receive
 *
 * @author Gavino
 * @date 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayReceive.class, reverseConvertGenerate = false)
public class PayReceiveBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Integer id;

    /**
     * 支付名称
     */
    @NotBlank(message = "支付名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 币种
     */
    @NotBlank(message = "币种不能为空", groups = { AddGroup.class, EditGroup.class })
    private String currencies;

    /**
     * 商户国家
     */
    @NotBlank(message = "商户国家不能为空", groups = { AddGroup.class, EditGroup.class })
    private String country;

    /**
     * 支付代码
     */
    @NotBlank(message = "支付代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;


}
